package com.banzhi.shop.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.banzhi.shop.R;
import com.banzhi.shop.base.BaseActivity;
import com.banzhi.shop.utils.Translucent;

public class ShouHouActivity extends BaseActivity implements View.OnClickListener {

    private LinearLayout mLlCommon;
    private LinearLayout mLlChoice;
    private ImageView mIvBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shou_hou);
        Translucent.setTranslucent(this);
        initView();
        initListener();
    }

    private void initListener() {
        mLlCommon.setOnClickListener(this);
        mLlChoice.setOnClickListener(this);
        mIvBack.setOnClickListener(this);
    }
    private void initView() {
        mLlCommon = (LinearLayout) findViewById(R.id.ll_common);
        mLlChoice = (LinearLayout) findViewById(R.id.ll_choice);
        mIvBack = (ImageView) findViewById(R.id.iv_back_shouhou);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back_shouhou:
                finish();
                break;
            case R.id.ll_common:
                Intent mspintent = new Intent(this, MyShouhouActivity.class);
                startActivity(mspintent);
                break;
            case R.id.ll_choice:
                Intent mspintents = new Intent(this, ChoiceMyShouhouActivity.class);
                startActivity(mspintents);
                break;
        }

    }
}
